<?php


namespace frontend\models;
use Yii;
use yii\db\ActiveRecord;

class Goods extends ActiveRecord
{
    public static function tableName()
    {
        return '{{goods}}';
    }
    public static function getGoods($goods_id){
        $goods=self::findAll($goods_id);
        return $goods;
    }
    public static function getgoodsnum($goods_id){
        $goods_num=self::findOne($goods_id)->goods_num;
        return $goods_num;
    }
}